import request from '@/utils/request'

// 查询维护类型列表
export function listServiceType(query) {
    return request({
        url: '/modules/serviceType/list',
        method: 'get',
        params: query
    })
}

// 查询维护类型详细
export function getServiceType(serviceTypeId) {
    return request({
        url: '/modules/serviceType/' + serviceTypeId,
        method: 'get'
    })
}

// 新增维护类型
export function addServiceType(data) {
    return request({
        url: '/modules/serviceType',
        method: 'post',
        data: data
    })
}

// 修改维护类型
export function updateServiceType(data) {
    return request({
        url: '/modules/serviceType',
        method: 'put',
        data: data
    })
}

// 删除维护类型
export function delServiceType(serviceTypeId) {
    return request({
        url: '/modules/serviceType/' + serviceTypeId,
        method: 'delete'
    })
}

// 导出维护类型
export function exportServiceType(query) {
    return request({
        url: '/modules/serviceType/export',
        method: 'get',
        params: query
    })
}
